package org.mushroomdb.parser.sql92.impl.util;

public class Trimmer {

	private Trim trimMethod;
	char charToTrim;
	
	public Trimmer(Trim trimMethod, String charToTrim) {
		this.trimMethod = trimMethod;
		this.charToTrim = charToTrim.charAt(0);
	}
	
	public String trim(String sample) {
		return this.trimMethod.trim(sample, this.charToTrim);
	}

}
